<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateGongbTasksTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('gongb_tasks', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('gb_id');
			$table->string('gb_name');
			$table->date('date');
			$table->integer('wxpaib_id');
			$table->string('wxpaib_gx');
			$table->time('work_time');
			$table->string('chej')->nullable();
			$table->string('jic')->nullable();
			$table->integer('wxpaic_total')->nullable();
			$table->integer('wxpaic_wanc')->default(0);
			$table->string('shenc_dw')->nullable();
			$table->integer('day_linl')->nullable();
			$table->string('linl_dw')->nullable();
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('gongb_tasks');
	}

}
